#
# 'make depend' uses makedepend to automatically generate dependencies 
#               (dependencies are added to end of Makefile)
# 'make'        build executable file 'mycc'
# 'make clean'  removes all .o and executable files
#

# define the C compiler to use
CC = gcc

# define any compile-time flags
CFLAGS = -W -Wall -ansi -pedantic

# define any directories containing header files other than /usr/include
#
INCLUDES = 

# define library paths in addition to /usr/lib
#   if I wanted to include libraries not in /usr/lib I'd specify
#   their path using -Lpath, something like:
LFLAGS = 

# define any libraries to link into executable:
#   if I want to link in libraries (libx.so or libx.a) I use the -llibname 
#   option, something like (this will link in libmylib.so and libm.so:
LIBS = -ltinyxml

# define the C source files
SRCS = main.cpp modele/menu/Action.cpp modele/menu/Combat.cpp modele/menu/Gestion.cpp modele/menu/Deplacement.cpp modele/menu/Interagir.cpp modele/menu/Systeme.cpp modele/Menu.cpp modele/EscalierUp.cpp modele/EscalierDown.cpp controleur/ControleConsole.cpp controleur/Controleur.cpp modele/Case.cpp modele/Modele.cpp modele/Porte.cpp modele/Personnage.cpp modele/Arbre.cpp modele/Eau.cpp modele/Mur.cpp modele/Plaine.cpp modele/Table.cpp vue/Console.cpp vue/Vue.cpp modele/Map.cpp

# define the C object files 
#
# This uses Suffix Replacement within a macro:
#   $(name:string1=string2)
#         For each word in 'name' replace 'string1' with 'string2'
# Below we are replacing the suffix .c of all words in the macro SRCS
# with the .o suffix
#
OBJS = $(SRCS:.cpp=.o)
HH = $(SRCS:.cpp=.h)
CPP = $(SRCS:.cpp=.cpp)

# define the executable file 
MAIN = test

#
# The following part of the makefile is generic; it can be used to 
# build any executable just by changing the definitions above and by
# deleting dependencies appended to the file from 'make depend'
#

.PHONY: depend clean

all:	$(MAIN)
	@echo  Simple compiler named mycc has been compiled

$(MAIN): $(OBJS) 
	$(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)

# this is a suffix replacement rule for building .o's from .c's
# it uses automatic variables $<: the name of the prerequisite of
# the rule(a .c file) and $@: the name of the target of the rule (a .o file) 
# (see the gnu make manual section about automatic variables)
.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<  -o $@

clean:
	$(RM) *.o *~ $(OBJS)
	
open:
	geany $(HH) $(CPP) &

count:
	wc -l $(CPP)
astyle:
	astyle $(HH) $(CPP)

depend: $(SRCS)
	makedepend *.cpp $^

# DO NOT DELETE THIS LINE -- make depend needs it

main.o: vue/Console.h vue/Vue.h modele/Modele.h modele/Map.h
main.o: /usr/include/tinyxml.h /usr/include/ctype.h /usr/include/features.h
main.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
main.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
main.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h
main.o: /usr/include/bits/typesizes.h /usr/include/endian.h
main.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
main.o: /usr/include/xlocale.h /usr/include/stdio.h /usr/include/libio.h
main.o: /usr/include/_G_config.h /usr/include/wchar.h
main.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
main.o: /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h
main.o: /usr/include/sys/select.h /usr/include/bits/select.h
main.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
main.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
main.o: /usr/include/alloca.h /usr/include/string.h /usr/include/assert.h
main.o: modele/Case.h modele/Plaine.h modele/Eau.h modele/Porte.h
main.o: modele/Mur.h modele/Arbre.h modele/Table.h modele/EscalierUp.h
main.o: modele/Personnage.h modele/Menu.h modele/menu/Action.h modele/Menu.h
main.o: modele/menu/Combat.h modele/menu/Deplacement.h modele/menu/Gestion.h
main.o: modele/menu/Systeme.h modele/menu/Interagir.h vue/Vue.h
main.o: modele/Modele.h controleur/ControleConsole.h vue/Vue.h
main.o: controleur/Controleur.h controleur/Controleur.h
main.o: vue/Console.h vue/Vue.h modele/Modele.h modele/Map.h
main.o: /usr/include/tinyxml.h /usr/include/ctype.h /usr/include/features.h
main.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
main.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
main.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h
main.o: /usr/include/bits/typesizes.h /usr/include/endian.h
main.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
main.o: /usr/include/xlocale.h /usr/include/stdio.h /usr/include/libio.h
main.o: /usr/include/_G_config.h /usr/include/wchar.h
main.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
main.o: /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h
main.o: /usr/include/sys/select.h /usr/include/bits/select.h
main.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
main.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
main.o: /usr/include/alloca.h /usr/include/string.h /usr/include/assert.h
main.o: modele/Case.h modele/Plaine.h modele/Eau.h modele/Porte.h
main.o: modele/Mur.h modele/Arbre.h modele/Table.h modele/EscalierUp.h
main.o: modele/Personnage.h modele/Menu.h modele/menu/Action.h modele/Menu.h
main.o: modele/menu/Combat.h modele/menu/Deplacement.h modele/menu/Gestion.h
main.o: modele/menu/Systeme.h modele/menu/Interagir.h vue/Vue.h
main.o: modele/Modele.h controleur/ControleConsole.h vue/Vue.h
main.o: controleur/Controleur.h controleur/Controleur.h
modele/menu/Action.o: modele/menu/Action.h modele/Menu.h
modele/menu/Combat.o: modele/menu/Combat.h modele/Menu.h
modele/menu/Gestion.o: modele/menu/Gestion.h modele/Menu.h
modele/menu/Deplacement.o: modele/menu/Deplacement.h modele/Menu.h
modele/menu/Interagir.o: modele/menu/Interagir.h modele/Menu.h
modele/menu/Systeme.o: modele/menu/Systeme.h modele/Menu.h
modele/Menu.o: modele/Menu.h
modele/EscalierUp.o: modele/EscalierUp.h modele/Case.h
modele/EscalierDown.o: modele/EscalierDown.h modele/Case.h
controleur/ControleConsole.o: controleur/ControleConsole.h modele/Modele.h
controleur/ControleConsole.o: modele/Map.h /usr/include/tinyxml.h
controleur/ControleConsole.o: /usr/include/ctype.h /usr/include/features.h
controleur/ControleConsole.o: /usr/include/bits/predefs.h
controleur/ControleConsole.o: /usr/include/sys/cdefs.h
controleur/ControleConsole.o: /usr/include/bits/wordsize.h
controleur/ControleConsole.o: /usr/include/gnu/stubs.h
controleur/ControleConsole.o: /usr/include/gnu/stubs-32.h
controleur/ControleConsole.o: /usr/include/bits/types.h
controleur/ControleConsole.o: /usr/include/bits/typesizes.h
controleur/ControleConsole.o: /usr/include/endian.h
controleur/ControleConsole.o: /usr/include/bits/endian.h
controleur/ControleConsole.o: /usr/include/bits/byteswap.h
controleur/ControleConsole.o: /usr/include/xlocale.h /usr/include/stdio.h
controleur/ControleConsole.o: /usr/include/libio.h /usr/include/_G_config.h
controleur/ControleConsole.o: /usr/include/wchar.h
controleur/ControleConsole.o: /usr/include/bits/stdio_lim.h
controleur/ControleConsole.o: /usr/include/bits/sys_errlist.h
controleur/ControleConsole.o: /usr/include/stdlib.h /usr/include/sys/types.h
controleur/ControleConsole.o: /usr/include/time.h /usr/include/sys/select.h
controleur/ControleConsole.o: /usr/include/bits/select.h
controleur/ControleConsole.o: /usr/include/bits/sigset.h
controleur/ControleConsole.o: /usr/include/bits/time.h
controleur/ControleConsole.o: /usr/include/sys/sysmacros.h
controleur/ControleConsole.o: /usr/include/bits/pthreadtypes.h
controleur/ControleConsole.o: /usr/include/alloca.h /usr/include/string.h
controleur/ControleConsole.o: /usr/include/assert.h modele/Case.h
controleur/ControleConsole.o: modele/Plaine.h modele/Eau.h modele/Porte.h
controleur/ControleConsole.o: modele/Mur.h modele/Arbre.h modele/Table.h
controleur/ControleConsole.o: modele/EscalierUp.h modele/Personnage.h
controleur/ControleConsole.o: modele/Menu.h modele/menu/Action.h
controleur/ControleConsole.o: modele/Menu.h modele/menu/Combat.h
controleur/ControleConsole.o: modele/menu/Deplacement.h modele/menu/Gestion.h
controleur/ControleConsole.o: modele/menu/Systeme.h modele/menu/Interagir.h
controleur/ControleConsole.o: vue/Vue.h controleur/Controleur.h
controleur/Controleur.o: controleur/Controleur.h modele/Modele.h modele/Map.h
controleur/Controleur.o: /usr/include/tinyxml.h /usr/include/ctype.h
controleur/Controleur.o: /usr/include/features.h /usr/include/bits/predefs.h
controleur/Controleur.o: /usr/include/sys/cdefs.h
controleur/Controleur.o: /usr/include/bits/wordsize.h
controleur/Controleur.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
controleur/Controleur.o: /usr/include/bits/types.h
controleur/Controleur.o: /usr/include/bits/typesizes.h /usr/include/endian.h
controleur/Controleur.o: /usr/include/bits/endian.h
controleur/Controleur.o: /usr/include/bits/byteswap.h /usr/include/xlocale.h
controleur/Controleur.o: /usr/include/stdio.h /usr/include/libio.h
controleur/Controleur.o: /usr/include/_G_config.h /usr/include/wchar.h
controleur/Controleur.o: /usr/include/bits/stdio_lim.h
controleur/Controleur.o: /usr/include/bits/sys_errlist.h
controleur/Controleur.o: /usr/include/stdlib.h /usr/include/sys/types.h
controleur/Controleur.o: /usr/include/time.h /usr/include/sys/select.h
controleur/Controleur.o: /usr/include/bits/select.h
controleur/Controleur.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
controleur/Controleur.o: /usr/include/sys/sysmacros.h
controleur/Controleur.o: /usr/include/bits/pthreadtypes.h
controleur/Controleur.o: /usr/include/alloca.h /usr/include/string.h
controleur/Controleur.o: /usr/include/assert.h modele/Case.h modele/Plaine.h
controleur/Controleur.o: modele/Eau.h modele/Porte.h modele/Mur.h
controleur/Controleur.o: modele/Arbre.h modele/Table.h modele/EscalierUp.h
controleur/Controleur.o: modele/Personnage.h modele/Menu.h
controleur/Controleur.o: modele/menu/Action.h modele/Menu.h
controleur/Controleur.o: modele/menu/Combat.h modele/menu/Deplacement.h
controleur/Controleur.o: modele/menu/Gestion.h modele/menu/Systeme.h
controleur/Controleur.o: modele/menu/Interagir.h vue/Vue.h
modele/Case.o: modele/Case.h
modele/Modele.o: modele/Modele.h modele/Map.h /usr/include/tinyxml.h
modele/Modele.o: /usr/include/ctype.h /usr/include/features.h
modele/Modele.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
modele/Modele.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
modele/Modele.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h
modele/Modele.o: /usr/include/bits/typesizes.h /usr/include/endian.h
modele/Modele.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
modele/Modele.o: /usr/include/xlocale.h /usr/include/stdio.h
modele/Modele.o: /usr/include/libio.h /usr/include/_G_config.h
modele/Modele.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h
modele/Modele.o: /usr/include/bits/sys_errlist.h /usr/include/stdlib.h
modele/Modele.o: /usr/include/sys/types.h /usr/include/time.h
modele/Modele.o: /usr/include/sys/select.h /usr/include/bits/select.h
modele/Modele.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
modele/Modele.o: /usr/include/sys/sysmacros.h
modele/Modele.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h
modele/Modele.o: /usr/include/string.h /usr/include/assert.h modele/Case.h
modele/Modele.o: modele/Plaine.h modele/Eau.h modele/Porte.h modele/Mur.h
modele/Modele.o: modele/Arbre.h modele/Table.h modele/EscalierUp.h
modele/Modele.o: modele/Personnage.h modele/Menu.h modele/menu/Action.h
modele/Modele.o: modele/Menu.h modele/menu/Combat.h modele/menu/Deplacement.h
modele/Modele.o: modele/menu/Gestion.h modele/menu/Systeme.h
modele/Modele.o: modele/menu/Interagir.h
modele/Porte.o: modele/Porte.h modele/Case.h
modele/Personnage.o: modele/Personnage.h
modele/Arbre.o: modele/Arbre.h modele/Case.h
modele/Eau.o: modele/Eau.h modele/Case.h
modele/Mur.o: modele/Mur.h modele/Case.h
modele/Plaine.o: modele/Plaine.h modele/Case.h
modele/Table.o: modele/Table.h modele/Case.h
vue/Console.o: vue/Console.h vue/Vue.h modele/Modele.h modele/Map.h
vue/Console.o: /usr/include/tinyxml.h /usr/include/ctype.h
vue/Console.o: /usr/include/features.h /usr/include/bits/predefs.h
vue/Console.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
vue/Console.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
vue/Console.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h
vue/Console.o: /usr/include/endian.h /usr/include/bits/endian.h
vue/Console.o: /usr/include/bits/byteswap.h /usr/include/xlocale.h
vue/Console.o: /usr/include/stdio.h /usr/include/libio.h
vue/Console.o: /usr/include/_G_config.h /usr/include/wchar.h
vue/Console.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
vue/Console.o: /usr/include/stdlib.h /usr/include/sys/types.h
vue/Console.o: /usr/include/time.h /usr/include/sys/select.h
vue/Console.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
vue/Console.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
vue/Console.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h
vue/Console.o: /usr/include/string.h /usr/include/assert.h modele/Case.h
vue/Console.o: modele/Plaine.h modele/Eau.h modele/Porte.h modele/Mur.h
vue/Console.o: modele/Arbre.h modele/Table.h modele/EscalierUp.h
vue/Console.o: modele/Personnage.h modele/Menu.h modele/menu/Action.h
vue/Console.o: modele/Menu.h modele/menu/Combat.h modele/menu/Deplacement.h
vue/Console.o: modele/menu/Gestion.h modele/menu/Systeme.h
vue/Console.o: modele/menu/Interagir.h
vue/Vue.o: vue/Vue.h modele/Modele.h modele/Map.h /usr/include/tinyxml.h
vue/Vue.o: /usr/include/ctype.h /usr/include/features.h
vue/Vue.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
vue/Vue.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
vue/Vue.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h
vue/Vue.o: /usr/include/bits/typesizes.h /usr/include/endian.h
vue/Vue.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
vue/Vue.o: /usr/include/xlocale.h /usr/include/stdio.h /usr/include/libio.h
vue/Vue.o: /usr/include/_G_config.h /usr/include/wchar.h
vue/Vue.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
vue/Vue.o: /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h
vue/Vue.o: /usr/include/sys/select.h /usr/include/bits/select.h
vue/Vue.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
vue/Vue.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
vue/Vue.o: /usr/include/alloca.h /usr/include/string.h /usr/include/assert.h
vue/Vue.o: modele/Case.h modele/Plaine.h modele/Eau.h modele/Porte.h
vue/Vue.o: modele/Mur.h modele/Arbre.h modele/Table.h modele/EscalierUp.h
vue/Vue.o: modele/Personnage.h modele/Menu.h modele/menu/Action.h
vue/Vue.o: modele/Menu.h modele/menu/Combat.h modele/menu/Deplacement.h
vue/Vue.o: modele/menu/Gestion.h modele/menu/Systeme.h
vue/Vue.o: modele/menu/Interagir.h
modele/Map.o: modele/Map.h /usr/include/tinyxml.h /usr/include/ctype.h
modele/Map.o: /usr/include/features.h /usr/include/bits/predefs.h
modele/Map.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
modele/Map.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
modele/Map.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h
modele/Map.o: /usr/include/endian.h /usr/include/bits/endian.h
modele/Map.o: /usr/include/bits/byteswap.h /usr/include/xlocale.h
modele/Map.o: /usr/include/stdio.h /usr/include/libio.h
modele/Map.o: /usr/include/_G_config.h /usr/include/wchar.h
modele/Map.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
modele/Map.o: /usr/include/stdlib.h /usr/include/sys/types.h
modele/Map.o: /usr/include/time.h /usr/include/sys/select.h
modele/Map.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
modele/Map.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
modele/Map.o: /usr/include/bits/pthreadtypes.h /usr/include/alloca.h
modele/Map.o: /usr/include/string.h /usr/include/assert.h modele/Case.h
modele/Map.o: modele/Plaine.h modele/Eau.h modele/Porte.h modele/Mur.h
modele/Map.o: modele/Arbre.h modele/Table.h modele/EscalierUp.h
